﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YAPL.Language.Core.Types;

namespace YAPL.Language.Core.Lib.GlobalFunctions {
	public class GetLine : YAPLFunction {
		public GetLine() : base(FunctionNames.GetLine, GCL.Get(ClassNames.GlobalScope)) { }
		public override YAPLObject Call(Scope scope) {
			ParseScope(scope);
			var str = Console.ReadLine();
			return new YAPLString(str);
		}

		public override bool CanPrecompute {
			get {
				return false;
			}
		}
	}
}
